extends ../base/admin_base
append content
  aside.col-md-3
    nav
      ul(class='nav nav-pills nav-stacked')
        li
          a(href='?all=true') 全部图书
        li
          a(href='?is_out=0') 未借阅
        li
          a(href='?is_out=1') 已借阅


  section(class='describe col-md-9')
    div
      button(class='add pull-right btn btn-default',
             data-toggle='modal',data-target='#info_modal')
        span(class='glyphicon glyphicon-plus')
          添加
  div(class='modal fade',id='info_modal',tabindex='-1',
      aria-labelledby='info_modal_label',aria-hidden='true')
    div.modal-dialog
      form(class='modal-content',enctype='multipart/form-data',method='POST')
        div.modal-header
          button(type='button',class='close',data-dismiss='modal',
                 aria-hidden='true') &times;
          h4(class='modal-title',id='info_modal_label')
            表单
        div.modal-body
          input(type='hidden',name='form_type',value='add')
          input(type='hidden',name='id')
          div.form-group
            label(for='bookName') 书名
            input(type='text',name='bookName',class='form-control',placeholder='书名')
          div.form-group
            label(for='author') 作者
            input(type='text',name='author',class='form-control',placeholder='作者')
          div.form-group
            label(for='publish') 出版社
            input(type='text',name='publish',class='form-control',placeholder='出版社')
          div.form-group
            label(for='') 图书封面
            input(id='imgFile',type='file',name='imgFile')
            p.help-block 上传图片
        div.modal-footer
          button(type='submit',class='btn btn-default')
            | 提交
          button(type='button',class='btn btn-default',data-dismiss='modal')
            | 关闭
  div(id='page-selection',class='col-md-6 col-md-offset-3')
